home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
SourceCode
/
MiniExamples
/
Rotato
/
MyImage.h
< prev
next >
Wrap
Text File
|
1991-04-10
|
630b
|
31 lines
/*
*
* MyImage.h -- How to rotate an NXImage
*
* You may freely copy, distribute, and reuse the code in this example.
* NeXT disclaims any warranty of any kind, expressed or implied, as to its
* fitness for any particular use.
*
* Written by Henry Krempel -- NeXT Developer Support
*
* Wed Apr 10 17:39:50 1991
*/
#import <appkit/NXImage.h>
@interface MyImage:NXImage
{
int rotation, flipped;
NXSize origSize, rotSize, *currentSize;
}
- initFromFile:(const char *)fileName;
- setRotation:(int)anInt;
- (BOOL)drawRepresentation:(NXImageRep *)imageRep inRect:(const NXRect *)rect;
- flip:sender;
@end